#include <linux/fs.h>
#include <linux/genhd.h>

struct gendisk *gendisk_head = NULL;

static void setup_dev(struct gendisk *dev) {
    dev->init();
}

int sys_setup(void *BIOS) {
    static int callable = 1;
    struct gendisk *p;

    if (!callable)
        return -1;
    callable = 0;

    for (p = gendisk_head; p; p = p->next) {
        setup_dev(p);
    }

    return (0);
}
